package com.haiyan.user.service.impl;

import com.haiyan.user.bean.UserBean;
import com.haiyan.user.dao.UserDao;
import com.haiyan.user.service.UserService;
import com.haiyan.utils.DaoFactory;

public class UserServiceImpl implements UserService {

    private UserDao userDao;
    {
        DaoFactory<UserDao> daoFactory = new DaoFactory<UserDao>();
        userDao= daoFactory.getDaoTransaction(UserDao.class);
    }


    @Override
    public UserBean findUserIdByUserBean(UserBean bean) {
        UserBean userBean = userDao.findUserIdByUserBean(bean);
        return userBean;
    }
}
